package com.hbcm.controller;

import com.hbcm.domain.Test;
import com.hbcm.service.TestService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zsm
 * @date 2025/10/9 15:49
 * @projectName RuoYi-Vue-springboot3
 * @description:
 */
@RestController(value = "hbcmTestController")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/test/test")
    public AjaxResult test() {
        List<Test> data =  testService.test();
        return AjaxResult.success(data);
    }
}
